import { reactive } from 'vue';

const state = reactive<{
  /**
   *用户id
   */
  appUserId: string;
}>({
  appUserId: '',
});

/**
 * 交接记录
 */
const historyState = reactive<{
  /**
   * 交接记录
   */
  content?: ScheduleApp.AppScheduleRecord;
}>({
  content: {},
});

const scheduleTimeState = reactive<{ content?: ScheduleApp.AppScheduleTime[] }>({
  content: [],
});

/**
 * 选择排班时
 */
const filter = reactive<{
  /**
   * 资产类型树
   */
  scheduleTimeList: { value?: string; text?: string }[];
  /**
   *类型提示框是否显示
   */
  filterTypeVisible: boolean;
}>({
  scheduleTimeList: [],
  filterTypeVisible: false,
});
export { state, historyState, scheduleTimeState, filter };
